
#ifndef BSP_ADC_PRE 
#define BSP_ADC_PRE 


#ifdef  BSP_ADC_MOD
#define BSP_ADC_EXT
#else
#define BSP_ADC_EXT extern
#endif

#include "FreeRTOS.h"
#include "semphr.h"
#include "stm32f0xx_hal_adc.h"


#define BSP_ADC_DATA_SIZE 16
#define BSP_ADC_CHANNEL_NUL 16


typedef struct
{
  ADC_HandleTypeDef hadc;
  DMA_HandleTypeDef hdma;
	uint16_t adc_data[BSP_ADC_DATA_SIZE];
	SemaphoreHandle_t semaphore;
}tADC;




BSP_ADC_EXT tADC bsp_adc;


BSP_ADC_EXT HAL_StatusTypeDef bsp_adc_init(tADC *adc);















#endif
